.class Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;
.super Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;
.source "PictureCompositionActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "g"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a<",
        "Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;",
        ">;"
    }
.end annotation


# instance fields
.field private a:I

.field final synthetic b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$a;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a:I

    return-void
.end method

.method private a(Landroid/view/View;I)V
    .locals 1

    if-nez p2, :cond_0

    .line 46
    sget p2, Les/w4;->durec_stitch_item_top_frame:I

    invoke-virtual {p1, p2}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_0

    .line 47
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p2, v0, :cond_1

    .line 48
    sget p2, Les/w4;->durec_stitch_item_bottom_frame:I

    invoke-virtual {p1, p2}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_0

    .line 49
    :cond_1
    sget p2, Les/w4;->durec_stitch_item_middle_frame:I

    invoke-virtual {p1, p2}, Landroid/view/View;->setBackgroundResource(I)V

    :goto_0
    return-void
.end method

.method private a(Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;I)V
    .locals 5

    .line 27
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;

    add-int/lit8 v1, p2, -0x1

    if-ltz v1, :cond_0

    .line 28
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v2}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    const/4 v2, 0x0

    const/4 v3, 0x1

    if-nez p2, :cond_2

    .line 29
    iget p2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->j:I

    if-ne p2, v3, :cond_1

    .line 30
    invoke-virtual {p1, v3}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setTopSliderEnable(Z)V

    .line 31
    invoke-virtual {p1, v3}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setBottomSliderEnable(Z)V

    goto :goto_2

    .line 32
    :cond_1
    invoke-virtual {p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setTopSliderEnable(Z)V

    .line 33
    invoke-virtual {p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setBottomSliderEnable(Z)V

    goto :goto_2

    .line 34
    :cond_2
    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v4}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    sub-int/2addr v4, v3

    if-ne p2, v4, :cond_4

    if-eqz v1, :cond_3

    .line 35
    iget p2, v1, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->j:I

    if-ne p2, v3, :cond_3

    .line 36
    invoke-virtual {p1, v3}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setTopSliderEnable(Z)V

    .line 37
    invoke-virtual {p1, v3}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setBottomSliderEnable(Z)V

    goto :goto_2

    .line 38
    :cond_3
    invoke-virtual {p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setTopSliderEnable(Z)V

    .line 39
    invoke-virtual {p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setBottomSliderEnable(Z)V

    goto :goto_2

    .line 40
    :cond_4
    iget p2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->j:I

    if-ne p2, v3, :cond_5

    .line 41
    invoke-virtual {p1, v3}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setBottomSliderEnable(Z)V

    goto :goto_1

    .line 42
    :cond_5
    invoke-virtual {p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setBottomSliderEnable(Z)V

    :goto_1
    if-eqz v1, :cond_6

    .line 43
    iget p2, v1, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->j:I

    if-ne p2, v3, :cond_6

    .line 44
    invoke-virtual {p1, v3}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setTopSliderEnable(Z)V

    goto :goto_2

    .line 45
    :cond_6
    invoke-virtual {p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setTopSliderEnable(Z)V

    :goto_2
    return-void
.end method

.method private b(Landroid/view/View;I)V
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a:I

    if-nez v0, :cond_0

    const/4 v0, 0x2

    .line 2
    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(I)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a:I

    :cond_0
    const/4 v0, 0x0

    if-nez p2, :cond_1

    .line 3
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p2

    check-cast p2, Landroid/view/ViewGroup$MarginLayoutParams;

    .line 4
    iput v0, p2, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    .line 5
    iget v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a:I

    iput v0, p2, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    .line 6
    invoke-virtual {p1, p2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 7
    :cond_1
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ne p2, v1, :cond_2

    .line 8
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p2

    check-cast p2, Landroid/view/ViewGroup$MarginLayoutParams;

    .line 9
    iput v0, p2, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    .line 10
    iget v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a:I

    iput v0, p2, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    .line 11
    invoke-virtual {p1, p2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 12
    :cond_2
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p2

    check-cast p2, Landroid/view/ViewGroup$MarginLayoutParams;

    .line 13
    iput v0, p2, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    .line 14
    iput v0, p2, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    .line 15
    invoke-virtual {p1, p2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :goto_0
    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 50
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public a(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;
    .locals 2

    .line 3
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p2

    .line 4
    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    .line 5
    sget v0, Les/y4;->durec_snitch_item:I

    const/4 v1, 0x0

    invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 6
    new-instance p2, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-direct {p2, v0, p1}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;-><init>(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;Landroid/view/View;)V

    return-object p2
.end method

.method public bridge synthetic a(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;
    .locals 0

    .line 2
    invoke-virtual {p0, p1, p2}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;

    move-result-object p1

    return-object p1
.end method

.method public a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;I)V
    .locals 5

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;

    .line 8
    iget-object v1, p1, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;->c:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;

    .line 9
    new-instance v2, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g$a;

    invoke-direct {v2, p0, v0}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g$a;-><init>(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;)V

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setOnSeekBarChangeListener(Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;)V

    .line 10
    iget v2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->f:I

    iget v3, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->e:I

    sub-int/2addr v2, v3

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setScopeHeight(I)V

    .line 11
    iget v2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->g:I

    iget v3, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->e:I

    sub-int/2addr v2, v3

    iget v4, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->h:I

    sub-int/2addr v4, v3

    invoke-virtual {v1, v2, v4}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(II)V

    .line 12
    invoke-direct {p0, v1, p2}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a(Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;I)V

    .line 13
    iget-object v2, p1, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;->e:Landroid/view/View;

    invoke-direct {p0, v2, p2}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a(Landroid/view/View;I)V

    .line 14
    invoke-direct {p0, v1, p2}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->b(Landroid/view/View;I)V

    .line 15
    iget-object p1, p1, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;->d:Landroid/widget/ImageView;

    const/4 v1, 0x1

    .line 16
    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setAdjustViewBounds(Z)V

    .line 17
    iget-object v2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->b:Landroid/graphics/Bitmap;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 18
    iget v2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->l:I

    if-eqz v2, :cond_0

    iget v2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->k:I

    if-eqz v2, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    if-eqz v1, :cond_1

    .line 19
    invoke-virtual {p1}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup$MarginLayoutParams;

    .line 20
    iget v2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->e:I

    neg-int v2, v2

    iput v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    .line 21
    iget v2, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->k:I

    iget v0, v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;->f:I

    sub-int/2addr v2, v0

    neg-int v0, v2

    iput v0, v1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    .line 22
    sget-object v0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->m:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "position:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {v0, p2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 23
    sget-object p2, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->m:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "ivLp.topMargin:"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p2, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 24
    sget-object p2, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->m:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "ivLp.bottomMargin:"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p2, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 25
    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_1

    .line 26
    :cond_1
    new-instance v1, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g$b;

    invoke-direct {v1, p0, v0, p1, p2}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g$b;-><init>(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$i;Landroid/widget/ImageView;I)V

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->post(Ljava/lang/Runnable;)Z

    :goto_1
    return-void
.end method

.method public bridge synthetic a(Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView$b;I)V
    .locals 0

    .line 1
    check-cast p1, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;

    invoke-virtual {p0, p1, p2}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$g;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$h;I)V

    return-void
.end method
